package com.app;

import java.io.IOException;

import com.netwrok.IoEngine;
import com.netwrok.NetworkCfg;
import com.netwrok.NetworkEvents;

public class MyApp {
	public static void main(String[] args) throws IOException {
		NetworkCfg cfg = new NetworkCfg();
		cfg.port=8004;
		Myhandler handler=new Myhandler();
		
		
		NetworkEvents events=new NetworkEvents(handler);
		IoEngine engine=new IoEngine();
		engine.setNetwork(events);
		engine.start(cfg);
	}
}
